﻿using System;
using System.Collections.Generic;

namespace Nop.Core.Domain.XJ
{
	/// <summary>
	/// 巡检计划临时表
	/// </summary>
	public class XJInspectionPlanTemp
	{
		public XJInspectionPlanTemp()
		{
			this.Categorys = new List<XJEquipmentCategory>();
			this.Places = new List<XJPlace>();
		}
		public int Id { get; set; }
		/// <summary>
		/// 计划编号
		/// </summary>
		public string PNo { get; set; }
		/// <summary>
		/// 计划名称
		/// 有名称，巡检内容里显示名称；没有名称，巡检内容显示具体的巡检点、设备分类
		/// </summary>
		public string Name { get; set; }
		/// <summary>
		/// 类型：日巡检、周巡检、月巡检
		/// <see cref="InspectionTypeEnum"/>
		/// </summary>
		public int TypeId { get; set; }
		public string TypeName { get; set; }
		/// <summary>
		/// 巡检目标
		/// </summary>
		public int AimId { get; set; }
		public string AimName { get; set; }
		///// <summary>
		///// 设施设备类别
		///// </summary>
		//public int[] CategoryIds { get; set; }
		public string CategoryNames { get; set; }
		/// <summary>
		/// 巡检点
		/// </summary>
		public string PlaceNames { get; set; }
		/// <summary>
		/// 巡检班组Id
		/// </summary>
		public int TeamId { get; set; }
		public string TeamName { get; set; }
		/// <summary>
		/// 巡检人员Id
		/// </summary>
		public int PersonId { get; set; }
		public string PersonName { get; set; }
		/// <summary>
		/// 维修班组Id
		/// </summary>
		public int MaintenanceTeamId { get; set; }
		public string MaintenanceTeamName { get; set; }
		/// <summary>
		/// 维修人员Id
		/// </summary>
		public int MaintenancePersonId { get; set; }
		public string MaintenancePersonName { get; set; }
		/// <summary>
		/// 计划开始日期
		/// </summary>
		public DateTime StartOn { get; set; }
		/// <summary>
		/// 计划结束日期
		/// </summary>
		public DateTime EndOn { get; set; }
		/// <summary>
		/// 漏检天数
		/// </summary>
		public int LossTime { get; set; }
		/// <summary>
		/// 最后打卡时间
		/// </summary>
		public DateTime? LastUpdateOn { get; set; }
		/// <summary>
		/// 发布
		/// </summary>
		public bool Published { get; set; }
		/// <summary>
		/// 创建人
		/// </summary>
		public int CustomerId { get; set; }
		public string CustomerName { get; set; }
		/// <summary>
		/// 创建时间
		/// </summary>
		public DateTime CreatedOn { get; set; }
		public IList<XJEquipmentCategory> Categorys { get; set; }
		public IList<XJPlace> Places { get; set; }
	}
}
